package com.duobaoyu.dby.supply.db.repository.order;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.duobaoyu.dby.supply.common.biz.dto.config.OperationLogPageQueryDTO;
import com.duobaoyu.dby.supply.db.entity.config.OperationLog;
import org.springframework.data.mongodb.core.query.Query;

import java.util.List;

/**
 * @author chenms
 * @date 2023/10/21 12:06 PM
 */
public interface OperationLogRepository {

    /**
     * 保存操作日志
     */
    boolean save(OperationLog operationLog);

    Page<OperationLog> page(Page<OperationLogPageQueryDTO> page, Query query);

    boolean saveBatch(List<OperationLog> operationLogList);

    List<OperationLog> list(Query query);
}
